package com.club.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

/**
 * @author zhangfc
 * @date 2022/12/12 16:22
 */
@Data
@Builder(toBuilder = true)
@TableName(value = "user_act_relation")
public class UserActRelation implements Serializable {

    private static final Long serialVersionUUID = 1L;
    /**
     * 用户活动关系主键
     */
    @TableId(value = "user_act_id",type = IdType.AUTO)
    private int userActId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private int userId;

    /**
     * 活动主键
     */
    @TableField(value = "act_id")
    private int actId;
}
